<div class="users form">
<?php echo $this->Form->create('User');?>
	<fieldset>
		<legend><?php __('Chỉnh sửa người dùng'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('group_id',array('label'=>'Nhóm người dùng','class'=>'required'));
		echo $this->Form->input('username',array('disabled'=>"disabled",'label'=>'Tên đăng nhập','class'=>'required'));
		//echo $this->data['User']['username'];
		echo $this->Form->input('new_password',array('label'=>'Mật khẩu mới','type'=>'password'));
		echo $this->Form->input('name',array('label'=>'Tên'));
		echo $this->Form->input('email');
		echo $this->Form->input('address');
		echo $this->Form->input('active',array('label'=>'Trạng thái'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
  <script>
  $(document).ready(function(){
    $("#UserEditForm").validate();
  });
  </script>
</div>
<div class="actions actions_view">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List News', true), array('controller' => 'news', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New News', true), array('controller' => 'news', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Videos', true), array('controller' => 'videos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Video', true), array('controller' => 'videos', 'action' => 'add')); ?> </li>
	</ul>
</div>